package cn.zhizihua.mapper;


import cn.zhizihua.domain.po.User;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User>{

    //分页搜素  重写selectPage
//    @Override
//    <P extends IPage<User>> P selectPage(P page,@Param("ew") Wrapper<User> queryWrapper);

    //通过用户名查询用户
    @Select("select * from user where username=#{username}")
    User getByUserName(String userName);
}
